import request from '@/utils/request'

// 查询融资申请列表
export function listFinancing(query) {
  return request({
    url: '/system/financing/list',
    method: 'get',
    params: query
  })
}

// 查询融资申请详细
export function getFinancing(id) {
  return request({
    url: '/system/financing/' + id,
    method: 'get'
  })
}

// 新增融资申请
export function addFinancing(data) {
  return request({
    url: '/system/financing',
    method: 'post',
    data: data
  })
}

// 修改融资申请
export function updateFinancing(data) {
  return request({
    url: '/system/financing',
    method: 'put',
    data: data
  })
}

// 删除融资申请
export function delFinancing(id) {
  return request({
    url: '/system/financing/' + id,
    method: 'delete'
  })
}

// 审批融资申请
export function shenpiFinancing(id) {
  return request({
    url: '/system/financing/' + id,
    method: 'post'
  })
}
